package com.movitech.mobile.cz.base.supplier.mapper;

import com.movitech.mobile.cz.base.supplier.entity.SCommentConfig;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.supplier.entity.ext.SCommentConfigFindRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 文本内容配置表 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-07
 */
@Component
@Mapper
public interface SCommentConfigMapper extends BaseMapper<SCommentConfig> {

    SCommentConfig getByCode(@Param("code")String code);

    List<SCommentConfig> findSHistoryCommentByCode(SCommentConfigFindRequest request);
}
